Adwaita: Use rtl variants of pan-end when needed
authorMatthias Clasen <mclasen@redhat.com>
Sun, 22 Jun 2014 18:12:29 +0000 (14:12 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Jun 2014 18:12:29 +0000 (14:12 -0400)
The -gtk-icontheme() function not have any automatism for
symbolic or rtl variants built-in, instead, we expect the theme
to use selectors to provide the right icon for each situation.

gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index 3d619a90f030decd93042fd90eb0e8404dee466c..573208fdb04305ee8f3338d843946e36e46f660c 100644 (file)
@@ -752,6 +752,7 @@ column-header {
     }
     //submenu indicators
     &.arrow { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
+    &.arrow:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
   }
 }
 
@@ -1627,6 +1628,7 @@ GtkScrolledWindow {
 
 GtkExpander {
   -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
+  &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
   &:hover { color: lighten($fg_color,30%); } //only lightens the arrow
   &:active { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
 }
index 2bf41bd96cd4eb430c5845904b1adb860ae53789..c907edb8ddfbca90b4ad5fc5c99bbde25bdaa277 100644 (file)
@@ -933,6 +933,8 @@ column-header .button, column-header .button:hover, column-header .button:active
       background-color: #2c2c2c; }
     .menu .menuitem.arrow {
       -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+    .menu .menuitem.arrow:dir(rtl) {
+      -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
 
 /***************
  * Popovers   *
@@ -2170,6 +2172,8 @@ GtkScrolledWindow GtkViewport.frame {
  *************/
 GtkExpander {
   -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+  GtkExpander:dir(rtl) {
+    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
   GtkExpander:hover {
     color: white; }
   GtkExpander:active {
index 8e819d672b30e26604b1b9a0950b7219d921ffd8..073348eabca1873ae270f20ccc9633b09fa79748 100644 (file)
@@ -933,6 +933,8 @@ column-header .button, column-header .button:hover, column-header .button:active
       background-color: #fcfcfc; }
     .menu .menuitem.arrow {
       -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+    .menu .menuitem.arrow:dir(rtl) {
+      -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
 
 /***************
  * Popovers   *
@@ -2168,6 +2170,8 @@ GtkScrolledWindow GtkViewport.frame {
  *************/
 GtkExpander {
   -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+  GtkExpander:dir(rtl) {
+    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
   GtkExpander:hover {
     color: #748489; }
   GtkExpander:active {